/*
 * @Author: liujinjun681 liujinjun681@qq.com
 * @Date: 2022-04-26 13:56:08
 * @LastEditors: liujinjun681 liujinjun681@qq.com
 * @LastEditTime: 2022-11-12 11:11:00
 * @FilePath: \hd_ims_web\src\api\project\rll.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询生产日历列表
export function listRll(query) {
  return request({
    url: '/project/rll/list',
    method: 'get',
    params: query,
  })
}

// 查询生产日历详细
export function getRll(rllId) {
  return request({
    url: '/project/rll/' + rllId,
    method: 'get',
  })
}

// 新增生产日历
export function addRll(data) {
  return request({
    url: '/project/rll',
    method: 'post',
    data: data,
  })
}

// 修改生产日历
export function updateRll(data) {
  return request({
    url: '/project/rll',
    method: 'put',
    data: data,
  })
}

// 删除生产日历
export function delRll(rllId) {
  return request({
    url: '/project/rll/' + rllId,
    method: 'delete',
  })
}

// 导出生产日历
export function exportRll(query) {
  return request({
    url: '/project/rll/export',
    method: 'get',
    params: query,
  })
}

export function changeRllFlag(data) {
  return request({
    url: '/project/rll/changeRllFlag',
    method: 'put',
    data: data,
  })
}
